package com.sea.supply.mapper;

import com.sea.supply.entity.DistributeSku;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DistributeSkuMapper {


    /**
     * 新增
     * @param distributeSku
     * @return
     */
    int insert(DistributeSku distributeSku);
    /**
     * 查询分配数据
     * @param orderSku
     * @param orderChannelName
     * @return
     */
    List<DistributeSku> findDistributeNumber(@Param("orderSku")String orderSku,@Param("orderChannelName")String orderChannelName);

    /**
     * 查询
     * @param planId
     * @return
     */
    List<DistributeSku> findByPlanId(Integer planId);

    Integer deleteByPlanId(Integer planId);

}
